import 'package:flutter/material.dart';
import 'package:smart_shop/components/shop_search_bar.dart';

class CategoryPage extends StatefulWidget {
  const CategoryPage({super.key});

  @override
  createState() => _CategoryPageState();
}

class _CategoryPageState extends State<CategoryPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('智慧商城'), // 标题
        centerTitle: true, // 标题是否居中
        backgroundColor: Colors.red, // 背景颜色
        foregroundColor: Colors.white, // 前景颜色(包含标题文字，图标等)
      ),
      body: const CustomScrollView(
        slivers: [
          SliverToBoxAdapter(
            child: ShopSearchBar(),
          )
        ],
      ),
    );
  }
}
